package output

import (
	"gitee.com/krio/ginc/example/core/exerr"
	"github.com/gin-gonic/gin"
)

const OutputNot = "not"

// NotFormatter 不处理格式
type NotFormatter struct{}

func (f *NotFormatter) Format(ctx *gin.Context, resp exerr.IExerr) {
	ctx.JSON(resp.GetHTTPStatus(), resp.GetData())
}
